﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TVNDBLayer.BLL;

public partial class albumbycategory : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["category"] != null)
            {
                int id;
                if (!int.TryParse(Request.QueryString["category"], out id))
                {
                    Response.Redirect("");
                }
                AlbumBLL albumBLL = new AlbumBLL();
                AlbumControl1.DataSource = albumBLL.GetAlbumByCategoryID(id);
            }

        }
    }
}